package com.my.admin.service;

import java.util.List;

import com.my.admin.dao.AdminDao;
import com.my.admin.domain.Admin;

public class AdminServiceImpl implements AdminService {
	private AdminDao adminDao;

	/**
	 * @return the adminDao
	 */
	public AdminDao getAdminDao() {
		return adminDao;
	}

	/**
	 * @param adminDao
	 *            the adminDao to set
	 */
	public void setAdminDao(AdminDao adminDao) {
		this.adminDao = adminDao;
	}

	public List<Admin> getAdminByParam(Admin admin) {
		if (admin != null) {
			List<Admin> list = adminDao.findByExample(admin, "createDt", "id");
			return list;
		}

		return null;
	}
}
